package com.liqi.device.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;

import com.liqi.common.utils.excel.ExcelImport;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class DvDeviceExcel  extends DvDevice{

    private  int rowNum;
    /** 系统自编型号编码 */
    @NotBlank(message = "系统自编型号编码不能为空")
    @Excel(name = "设备编码",width =  30,needMerge = true)
    @ExcelImport("设备编码")
    private String code;

    /** 设备名称（设备型号） */
    @NotBlank(message = "设备型号不能为空")
    @Excel(name = "设备名称",needMerge = true)
    @ExcelImport("设备名称")
    private String name;

    /** BOM编码 */
    @NotBlank(message = "BOM编码不能为空")
    @Excel(name = "BOM编码",needMerge = true)
    @ExcelImport("BOM编码")

    private String bomCode;

    /** 规格 */
    @Excel(name = "设备规格",needMerge = true)
    @ExcelImport("设备规格")

    private String spec;

    /** 品牌名称 */
    @Excel(name = "品牌名称",needMerge = true)
    @ExcelImport("品牌名称")
    private String brandName;

    /** 设备所有模块 */
    @ExcelCollection(name = "模块")
    @ExcelImport("模块")
    private List<DvModule> modules;


}
